﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using Caliburn.Core.InversionOfControl;
using Caliburn.PresentationFramework.Screens;

namespace MTGenome.ViewModels
{
    [Singleton(typeof(HomeViewModel)), PartCreationPolicy(CreationPolicy.Shared)]
    public sealed class HomeViewModel : ScreenBase
    {
        private readonly IScreen[] _screens = null;

        public HomeViewModel(
            MainWindowViewModel mainWindow,
            DeckBuilderViewModel deck,
            PlaymatViewModel playmat,
            OnlinePlayViewModel online)
            : base(mainWindow)
        {
            _screens = new IScreen[] { deck, playmat, online };
        }

        protected override void OnInitialize()
        {
            base.OnInitialize();

            DisplayName = "Home";
        }

        public IScreen[] Screens
        {
            get { return _screens; }
        }
    }
}
